home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980424-19980901 / 000019_news@newsmaster….columbia.edu _Sun May 3 02:45:31 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id CAA13014
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 3 May 1998 02:45:31 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id CAA18858
  7.     for kermit.misc@watsun; Sun, 3 May 1998 02:45:30 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!worldnet.att.net!newsadm
  9. From: Bernie <bfb@worldnet.att.net>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Ftp Script Problem
  12. Date: Sat, 02 May 1998 04:00:10 +0000
  13. Organization: AT&T WorldNet Services
  14. Lines: 30
  15. Message-ID: <6igrtg$ggq@bgtnsc01.worldnet.att.net>
  16. NNTP-Posting-Host: 12.68.111.161
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset=us-ascii
  19. Content-Transfer-Encoding: 7bit
  20. X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.31 i586)
  21. Xref: news.columbia.edu comp.protocols.kermit.misc:8670
  22.  
  23. I'm attempting to write a script which will ftp to my
  24. localhost (for testing purposes) and put a file.
  25. In the script below, when the line is reached
  26.  
  27. input 5 {Name (localhost.localdomain:root):}
  28.  
  29. The script does not continue.  To obtain the above
  30. line I typed: ftp localhost.localdomain and copied
  31. the prompt.
  32.  
  33. I currently have the Using C-Kermit book (yellow cover),
  34. but it is pre-ftp.  I've ordered the second edition which
  35. covers ftp, and will hopefully address my problem.
  36.  
  37.  
  38. clear input
  39. set host localhost.localdomain
  40. ftp localhost.localdomain
  41. input 5 {Name (localhost.localdomain:root):}
  42. output super\13
  43. input 9 assword:
  44. output mypasswd\13
  45. input 5 ftp>                     ; wait for ftp prompt
  46.  
  47. output ascii\13                    ; set binary mode
  48. input 20 ftp>                    ; wait for ftp prompt
  49. output {put tmp\13} ; transfer the file
  50. input  200 ftp>
  51. output bye\13                    ; exit ftp
  52.